/*
menu_control();
*/
if (global.menu_options != -1)
{
if (global.menu_option_selected == -1)
{
global.menu_option_selected = 0;
}
if keyboard_check_pressed(global.dpad[0])
{
if (global.menu_option_selected == 0)
{
global.menu_option_selected = ds_list_size(global.menu_option_indexes) - 1;
}
else
{
global.menu_option_selected--;
}
}
if keyboard_check_pressed(global.dpad[1])
{
if (global.menu_option_selected == ds_list_size(global.menu_option_indexes) - 1)
{
global.menu_option_selected = 0;
}
else
{
global.menu_option_selected++;
}
}
if keyboard_check_pressed(global.button[0])
{
menu_action(global.menu_id, ds_list_find_value(global.menu_option_indexes, global.menu_option_selected));
}
}
